Skip to main content

Checkbox

AutomatR.Web.Checkbox

The "Checkbox" activity in AutomatR's Web Activities category is designed to interact with checkbox elements on a web page. It allows you to select, unselect, or toggle the state of a checkbox. This activity is useful for automating tasks that involve interacting with checkboxes, such as form submissions or preference settings.

Properties

NameDescription
Input
ActionEnables the selection of options for the checkbox. You can choose to select, uncheck, or toggle the checkbox element for the selected UI element.
Web ElementEnter the UI Element variable identified by the "Find Element" or other activity. This variable represents the checkbox element on the web page.
Web SelectorSelect the browse button to indicate the element on the web with the help of the selector window. Use this when providing a selector for the checkbox element.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
TimeoutEnter the time in seconds (e.g., 5) for the activity to be executed before throwing an exception. If not provided, a default timeout is used (specified in Constants).
DelayEnter the wait time in seconds (e.g., 5) to start the activity. This can be useful for handling synchronization issues.
Output
ResultOutputs a boolean value indicating whether the checkbox action was successful. "True" indicates success, and "False" indicates failure. Use this output for further conditional branching or error handling in the workflow.

How to use:

  1. Drag and drop the "Checkbox" activity onto the workflow.
  2. Configure the properties by specifying the checkbox element using either the "Web Element" or "Web Selector" property.
  3. Choose the desired action for the checkbox: select, uncheck, or toggle.
  4. Optionally, configure the timeout and delay parameters.
  5. Execute the workflow to perform the specified action on the checkbox element.

Example: Consider an example where the "Checkbox" activity is used to select a checkbox for receiving newsletters on a web page:

Checkbox:
Action: Select
Web Element: checkboxElement
Timeout: 10
Delay: 2
Result: isCheckboxSelected

In this example, the activity selects the specified checkbox element ("checkboxElement") on the web page. The result of the operation (success or failure) is stored in the boolean variable "isCheckboxSelected" for further handling in the workflow.